package com.github.niefy.modules.third.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.niefy.modules.third.entity.ThirdTemplateMsgUnread;
import org.springframework.validation.annotation.Validated;

@Validated
public interface ThirdTemplateMsgUnreadService extends IService<ThirdTemplateMsgUnread> {

    /**
     * 获取未读消息数
     * @param thirdId
     */
    Long getUnreadMsgCount(String thirdId);

    /**
     * 由未读记录表移至已读记录表
     * @param msgId
     */
    void unreadMsgToreadMsg(Long msgId);

}
